package suncertify.db.test;

import suncertify.db.Data;

public class CloseUser extends Thread {

    private Data data;
    private int count;

    public CloseUser(String name, Data data, int count) {

	super.setName(name);
	this.data = data;
	this.count = count;
    }

    public void run() {

	for (int iteration = 1; iteration <= this.count; ++iteration) {

	    // Data.log("", "===== CloseUser =====  iteration = "
	    // + Integer.toString(iteration));
	    try {
		this.data.close();
	    } catch (Exception ex) {

		// Data.log("", "===== CloseUser Exception =====");

		ex.printStackTrace();
	    }
	}
    }
}
